﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddPlanHeader.ascx.vb"
    Inherits="WebForm_ManageWorkContent_AddPlanHeader" %>
<%@ Register Namespace="My" TagPrefix="cc1" %>
<%@ Register Src="~/WebForm/CommonControl/AnnualControl.ascx" TagName="AnnualControl"
    TagPrefix="My" %>
<%@ Register Src="~/WebForm/SearchControl/SearchInternalUserControl.ascx" TagName="SearchEmployeeControl"
    TagPrefix="My" %>
<My:MyFormView ID="fv" runat="server">
    <InsertItemTemplate>
        <table>
            <tr>
                <td align="right">
                    <asp:Label ID="lblAnnual" runat="server" meta:resourcekey="lblAnnual"></asp:Label>
                </td>
                <td align="left">
                    <My:AnnualControl ID="AnnualControl1" runat="server" Anaual='<%# Bind("Year") %>'/>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblOrganization" runat="server" meta:resourcekey="lblOrganization"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOrganizationName" runat="server" Enabled="false" Text='<%# Bind("OrganizationName") %>'></asp:TextBox>
                    <asp:Button ID="btSelect" runat="server" meta:resourcekey="btSelect" CommandName="Select" />
                    <asp:RequiredFieldValidator ID="vadOrganizationName" runat="server" ControlToValidate="txtOrganizationName"
                        Display="None" ValidationGroup="uSave" ErrorMessage="請選擇單位"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPersonInCharge" runat="server" meta:resourcekey="lblPersonInCharge"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtPersonInCharge" runat="server" Enabled="false" Text='<%# Bind("PersonInCharge") %>'></asp:TextBox>                    
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPlanFileName" runat="server" meta:resourcekey="lblPlanFileName"></asp:Label>
                </td>
                <td align="left">
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                    <%--<asp:Button ID="btnUpload" runat="server" meta:resourcekey="lbtnUpload" CommandName="Upload" />--%>                    
                    <asp:LinkButton ID="lbtnFileName" runat="server" CommandName="Download" Text='<%# Bind("FileName") %>' CommandArgument='<%# Bind("FileUrl") %>'></asp:LinkButton>
                </td>
            </tr>            
            <tr>
                <td colspan="2">
                    <hr />
                </td>
            </tr>
            <tr>
                <td align="right">
                </td>
                <td align="left">
                    <asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" ValidationGroup="uSave" CommandName="Save" />
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="False" DisplayMode="BulletList" ValidationGroup="uSave" />
    </InsertItemTemplate>
</My:MyFormView>
<My:SearchEmployeeControl ID="SearchEmployeeControl1" runat="server" />
